﻿using System;
using System.Collections.Generic;


namespace DyUi.Base.Constants
{
    public class ConstantHelper
    {
        private readonly string _prefix;

        public ConstantHelper(String prefix)
        {
            _prefix = prefix;
        }

        public string Setting(params String[] names)
        {
            var list = new List<String> { _prefix };
            list.AddRange(names);
            return String.Join(".", list.ToArray());
        }

        public string Message(String verb, params String[] names)
        {
            var list = new List<String> { _prefix, verb };
            list.AddRange(names);
            return String.Join(".", list.ToArray());
        }
    }
}